﻿using IceCS.AutoMapper.Core;
using System;

namespace IceCS.AutoMapper.Cmd
{
    class Program
    {
        static void Main(string[] args)
        {
            M.Configure();
            MapUser();
        }

        static void MapUser()
        {
            var userA = new UserInfo()
            {
                Id = 5575,
                Name = "Month D Ed",
                Age = 43,
                Address = "Street Mark,Wiz"
            };

            var userA1 = M.Mapper.Map<UserInfoSummaryDto>(userA);
            var userA2 = M.Mapper.Map<UserInfoSummary2Dto>(userA);
            Console.WriteLine(userA1.Name);
            Console.WriteLine(userA2.Name);
        }
    }
}
